package com.spring.springboot.sys.core.constant;

/**
 * 业务常量
 *
 * @author 15625
 */
public class BusinessConstant {

    /**
     * Boolean值
     */
    public interface Boolean {

        String TRUE = "true";

        String FALSE = "false";
    }

    /**
     * 数据状态
     */
    public interface DataStatus {
        //启用
        Integer ENABLE = 0;

        //禁用
        Integer DISABLED = 1;
    }

    /**
     * 删除状态
     */
    public interface DeleteStatus {
        //未删除
        Integer NO_DELETE = 0;

        //已删除
        Integer DELETE = 1;
    }

    /**
     * int常量值
     */
    public interface IntNum {
        //数字0
        Integer NUM_ZERO = 0;

        //数字1
        Integer NUM_ONE = 1;

        //数字2
        Integer NUM_TWO = 2;

        //数字3
        Integer NUM_THREE = 3;

        //数字4
        Integer NUM_FOUR = 4;

        //数字5
        Integer NUM_FIVE = 5;
    }

    /**
     * Long常量值
     */
    public interface LongNum {
        //数字0
        Long NUM_ZERO = 0L;

        //数字1
        Long NUM_ONE = 1L;

        //数字2
        Long NUM_TWO = 2L;

        //数字3
        Long NUM_THREE = 3L;

        //数字4
        Long NUM_FOUR = 4L;

        //数字5
        Long NUM_FIVE = 5L;
    }

    /**
     * String常量值
     */
    public interface StringNum {
        //数字0
        String NUM_ZERO = "0";

        //数字1
        String NUM_ONE = "1";

        //数字2
        String NUM_TWO = "2";

        //数字3
        String NUM_THREE = "3";

        //数字4
        String NUM_FOUR = "4";

        //数字5
        String NUM_FIVE = "5";
    }

    /**
     * minio参数
     */
    public interface Minio {
        /**
         * 文件上传ip
         */
        String ENDPOINT = "MINIO_ENDPOINT";

        /**
         * 用户名
         */
        String ACCESS_KEY = "MINIO_ACCESS_KEY";

        /**
         * 密钥
         */
        String SECRET_KEY = "MINIO_SECRET_KEY";

        /**
         * 文件访问路径
         */
        String NGINX_HOST = "MINIO_NGINX_HOST";
    }

    /**
     * 日期格式化
     */
    public interface DateFormat {
        /**
         * 年月日 时分秒格式化
         */
        String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

        /**
         * 年月日格式化
         */
        String DATE_FORMAT = "yyyy-MM-dd";
    }

    /**
     * 数据脱敏
     */
    public interface Desensitization {

        /**
         * code码
         */
        String INFO_ENCRYPTION = "INFO_ENCRYPTION";

        /**
         * 开启
         */
        String OPEN = "open";

        /**
         * 关闭
         */
        String CLOSE = "close";
    }

    /**
     * 腾讯云短信配置
     */
    public interface SendMessage {
        /**
         * secretId
         */
        String MSG_SECRET_ID = "MSG_SECRET_ID";

        /**
         * secretKey
         */
        String MSG_SECRET_KEY = "MSG_SECRET_KEY";

        /**
         * SDK_APP_ID
         */
        String MSG_SDK_APP_ID = "MSG_SDK_APP_ID";

        /**
         * APP_KEY
         */
        String MSG_APP_KEY = "MSG_APP_KEY";

        /**
         * SIGN_NAME
         */
        String MSG_SIGN_NAME = "MSG_SIGN_NAME";

        /**
         * 短信模板
         */
        String MSG_TEMPLATE_ID = "MSG_TEMPLATE_ID";
    }

}
